package com.xingmang.db.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
* <p>
    * 
    * </p>
* @author hss
* @since 2023-06-20
*/
@Data
@TableName("tb_dic")
@ApiModel(value = "Dic对象", description = "")
public class Dic implements Serializable {

    private static final long serialVersionUID = 1L;
    @ApiModelProperty("代码类别")
    @TableField("dmlb")
    private String dmlb;

    @ApiModelProperty("代码值")
    @TableField("dmz")
    private String dmz;

    @ApiModelProperty("代码名称")
    @TableField("dmmc")
    private String dmmc;

    @ApiModelProperty("父代码值")
    @TableField("fdmz")
    private String fdmz;

    @ApiModelProperty("创建时间")
    @TableField("create_time")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date createTime;

    @ApiModelProperty("修改时间")
    @TableField("update_time")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date updateTime;

    @ApiModelProperty("是否删除")
    @TableField("is_deleted")
    @TableLogic
    private Boolean isDeleted;

}
